package com.wordlearning.app.config;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Contact;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.info.License;
import io.swagger.v3.oas.annotations.servers.Server;
import org.springframework.context.annotation.Configuration;

/**
 * Swagger/SpringDoc OpenAPI configuration class
 * This class explicitly configures the API documentation settings
 */
@Configuration
@OpenAPIDefinition(
        info = @Info(
                title = "Word Learning API",
                description = "REST API for Word Learning Application",
                version = "1.0.0",
                contact = @Contact(
                        name = "Word Learning Team",
                        email = "team@wordlearning.com"
                ),
                license = @License(
                        name = "Apache 2.0",
                        url = "http://www.apache.org/licenses/LICENSE-2.0"
                )
        ),
        servers = {
                @Server(
                        url = "http://localhost:8082/api",
                        description = "Development Server"
                )
        }
)
public class SwaggerConfig {
    
    // Additional Swagger configuration can be added here if needed
    
}